{template admin_improt}
<script>
function del(jobs_id){
	if(confirm("确认删除所有选中数据么？操作不可恢复")){
	window.location="admin.php?p=jobs&a=jobsdel&jobs_id="+jobs_id;
	}//

}

function checkAlljobs(form, name) {
	for(var i = 0; i < form.elements.length; i++) {
		var e = form.elements[i];
		if(e.name.match(name)) {
			e.checked = form.elements['chkall'].checked;
		}
	}
}
function jobsSubmit(){
		if(confirm("确认删除所有选中数据么？操作不可恢复")){
			document.getElementById("f_form").action = "?p=jobs&a=jobsdelall";
			document.getElementById("f_form").submit();
			return true;
		} else {
			return false;
		}
}
</script>

<div class="mainStyle">
	<div class="mainTitle">
		<span class="mainTitle_text">
	  		工作机会管理
		</span>
	</div>
	<div class="mainSearch">
		<span class="mainTitle_btn"><a href="?p=jobs&a=jobsadd"><img src="style/images/btn1.gif" border="0";></a></span>
	</div>
	<div class="mainTitle_list">
		<span class="mainTitle_text1">名称</span>
		<span class="mainTitle_text_7">结束时间</span>
		<span class="mainTitle_text_7">申请人数</span>
		<span class="mainTitle_text_6">是否推荐</span>
		<span class="mainTitle_text_6">是否有效</span>
		<span class="mainTitle_text2">添加时间</span>
		<span class="mainTitle_text6">操作</span>
	</div>
	<form id="f_form" name="f_form" action="" method="post">
	<!--{if $list}-->
		<!--{loop $list $nl}-->
		<div class="mainList">
			<span class="mainList_text1"><input type="checkbox" name="ids[]" value="{$nl['jobs_id']}"><!--{$nl["name"]}--></span>
			<span class="mainList_text77">{$nl['e_time']}</span>
			<span class="mainList_text77">{$nl['apply_num']}</span>
			<span class="mainList_text66">{if $nl["is_tuijian"] == 1}<span style="color:red;">否</span>{else}<span style="color:green;">是</span>{/if}</span>
			<span class="mainList_text66">{if $nl["is_ok"] == 1}<span style="color:red;">无效</span>{else}<span style="color:green;">有效</span>{/if}</span>
			<span class="mainList_text2"><!--{$nl["create_time"]}--></span>
			<span class="mainList_text6">
				<span class="mainList_text8"><a href='?p=jobs&a=jobsedit&t=modify&jobs_id={$nl['jobs_id']}'>编辑</a></span>
				<span class="mainList_text8"><a href='javascript:del({$nl['jobs_id']}) '>删除</a></span></span>
			</span>
		</div>
		<!--{/loop}-->
			<div style="padding-top:10px;width:100%;">
				<div style="padding-left:30px;font-size:12px;">
					<div style="float:left;display:inline;margin-top:2px;"><input type="checkbox" id="chkall" name="chkall" onclick="checkAlljobs(this.form,'ids')"></div>
					<div style="float:left;display:inline;margin-top:6px;">全选</div>
					<div style="float:left;display:inline;margin-left:5px;">
						<input type="submit" value="批量删除" onclick="return jobsSubmit();"/>
					</div>
				</div>
			</div>
			<div style="width:100%;text-align:right;"><div class="pages" ><!--{if $pagecount}--><!--{loop $pagecount $pageLinkText}-->{$pageLinkText}<!--{/loop}--><!--{/if}--></div></div>
		<!--{else}-->
		<div style="width:100%;text-align:center;font-size:12px;padding:40px 0px;">暂无内容!</div>
	<!--{/if}-->
	</form>
</div>
{template admin_bottom}
